;;; init-eglot.el --- LSP support via eglot          -*- lexical-binding: t; -*-

;;; Commentary:

;;; Code:


(rc/require 'consult-eglot)
(straight-use-package '(eglot-booster :host github :repo "jdtsmith/eglot-booster"))
(use-package eglot-booster
  :after eglot
  :bind ("M-RET" . eglot-code-actions)
  :config	(eglot-booster-mode))
(use-package consult-eglot
  :after eglot
)
;; (defvar jsonrpc-log-event-p nil)
;;
;; (defun jsonrpc--log-event-advice (f &rest args)
;;   (if jsonrpc-log-event-p (apply f args)))
;;
;; (advice-add #'jsonrpc--log-event :around #'jsonrpc--log-event-advice)
;; (setq eglot-booster-io-only t)

(provide 'init-eglot)
;;; init-eglot.el ends here
